package de.chessgame.src;

import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;

public class ModelPawn extends ModelBase
{
  //fields
    ModelRenderer ShapeBottom01;
    ModelRenderer ShapeMidBig;
    ModelRenderer ShapeMidSmall0;
    ModelRenderer ShapeMidSmall1;
    ModelRenderer ShapeMidNeck;
    ModelRenderer ShapeHeadBig1;
    ModelRenderer ShapeHeadBig0;
    ModelRenderer ShapeHeadBig2;
    ModelRenderer ShapeHeadSmall0;
    ModelRenderer ShapeHeadSmall1;
    ModelRenderer ShapeHeadSmall3;
    ModelRenderer ShapeHeadSmall2;
    ModelRenderer ShapeBottom1;
    ModelRenderer ShapeBottom00;
  
  public ModelPawn()
  {
    textureWidth = 32;
    textureHeight = 32;
    
      ShapeBottom01 = new ModelRenderer(this, 0, 8);
      ShapeBottom01.addBox(0F, 0F, 0F, 6, 2, 4);
      ShapeBottom01.setRotationPoint(-3F, 22F, -2F);
      ShapeBottom01.setTextureSize(64, 32);
      ShapeBottom01.mirror = true;
      setRotation(ShapeBottom01, 0F, 0F, 0F);
      ShapeMidBig = new ModelRenderer(this, 20, 0);
      ShapeMidBig.addBox(0F, 0F, 0F, 2, 1, 4);
      ShapeMidBig.setRotationPoint(-1F, 20F, -2F);
      ShapeMidBig.setTextureSize(64, 32);
      ShapeMidBig.mirror = true;
      setRotation(ShapeMidBig, 0F, 0F, 0F);
      ShapeMidSmall0 = new ModelRenderer(this, 18, 0);
      ShapeMidSmall0.addBox(0F, 0F, 0F, 1, 1, 2);
      ShapeMidSmall0.setRotationPoint(1F, 20F, -1F);
      ShapeMidSmall0.setTextureSize(64, 32);
      ShapeMidSmall0.mirror = true;
      setRotation(ShapeMidSmall0, 0F, 0F, 0F);
      ShapeMidSmall1 = new ModelRenderer(this, 20, 5);
      ShapeMidSmall1.addBox(0F, 0F, 0F, 1, 1, 2);
      ShapeMidSmall1.setRotationPoint(-2F, 20F, -1F);
      ShapeMidSmall1.setTextureSize(64, 32);
      ShapeMidSmall1.mirror = true;
      setRotation(ShapeMidSmall1, 0F, 0F, 0F);
      ShapeMidNeck = new ModelRenderer(this, 16, 8);
      ShapeMidNeck.addBox(0F, 0F, 0F, 2, 1, 2);
      ShapeMidNeck.setRotationPoint(-1F, 19F, -1F);
      ShapeMidNeck.setTextureSize(64, 32);
      ShapeMidNeck.mirror = true;
      setRotation(ShapeMidNeck, 0F, 0F, 0F);
      ShapeHeadBig1 = new ModelRenderer(this, 0, 14);
      ShapeHeadBig1.addBox(0F, 0F, 0F, 2, 6, 4);
      ShapeHeadBig1.setRotationPoint(-1F, 13F, -2F);
      ShapeHeadBig1.setTextureSize(64, 32);
      ShapeHeadBig1.mirror = true;
      setRotation(ShapeHeadBig1, 0F, 0F, 0F);
      ShapeHeadBig0 = new ModelRenderer(this, 12, 14);
      ShapeHeadBig0.addBox(0F, 0F, 0F, 4, 6, 2);
      ShapeHeadBig0.setRotationPoint(-2F, 13F, -1F);
      ShapeHeadBig0.setTextureSize(64, 32);
      ShapeHeadBig0.mirror = true;
      setRotation(ShapeHeadBig0, 0F, 0F, 0F);
      ShapeHeadBig2 = new ModelRenderer(this, 0, 24);
      ShapeHeadBig2.addBox(0F, 0F, 0F, 4, 4, 4);
      ShapeHeadBig2.setRotationPoint(-2F, 14F, -2F);
      ShapeHeadBig2.setTextureSize(64, 32);
      ShapeHeadBig2.mirror = true;
      setRotation(ShapeHeadBig2, 0F, 0F, 0F);
      ShapeHeadSmall0 = new ModelRenderer(this, 26, 5);
      ShapeHeadSmall0.addBox(0F, 0F, 0F, 1, 2, 2);
      ShapeHeadSmall0.setRotationPoint(2F, 15F, -1F);
      ShapeHeadSmall0.setTextureSize(64, 32);
      ShapeHeadSmall0.mirror = true;
      setRotation(ShapeHeadSmall0, 0F, 0F, 0F);
      ShapeHeadSmall1 = new ModelRenderer(this, 24, 9);
      ShapeHeadSmall1.addBox(0F, 0F, 0F, 2, 2, 1);
      ShapeHeadSmall1.setRotationPoint(-1F, 15F, 2F);
      ShapeHeadSmall1.setTextureSize(64, 32);
      ShapeHeadSmall1.mirror = true;
      setRotation(ShapeHeadSmall1, 0F, 0F, 0F);
      ShapeHeadSmall3 = new ModelRenderer(this, 24, 12);
      ShapeHeadSmall3.addBox(0F, 0F, 0F, 2, 2, 1);
      ShapeHeadSmall3.setRotationPoint(-1F, 15F, -3F);
      ShapeHeadSmall3.setTextureSize(64, 32);
      ShapeHeadSmall3.mirror = true;
      setRotation(ShapeHeadSmall3, 0F, 0F, 0F);
      ShapeHeadSmall2 = new ModelRenderer(this, 24, 15);
      ShapeHeadSmall2.addBox(0F, 0F, 0F, 1, 2, 2);
      ShapeHeadSmall2.setRotationPoint(-3F, 15F, -1F);
      ShapeHeadSmall2.setTextureSize(64, 32);
      ShapeHeadSmall2.mirror = true;
      setRotation(ShapeHeadSmall2, 0F, 0F, 0F);
      ShapeBottom1 = new ModelRenderer(this, 12, 22);
      ShapeBottom1.addBox(0F, 0F, 0F, 4, 1, 4);
      ShapeBottom1.setRotationPoint(-2F, 21F, -2F);
      ShapeBottom1.setTextureSize(64, 32);
      ShapeBottom1.mirror = true;
      setRotation(ShapeBottom1, 0F, 0F, 0F);
      ShapeBottom00 = new ModelRenderer(this, 0, 0);
      ShapeBottom00.addBox(0F, 0F, 0F, 4, 2, 6);
      ShapeBottom00.setRotationPoint(-2F, 22F, -3F);
      ShapeBottom00.setTextureSize(64, 32);
      ShapeBottom00.mirror = true;
      setRotation(ShapeBottom00, 0F, 0F, 0F);
  }
  
  public void render(float f5)
  {
    ShapeBottom01.render(f5);
    ShapeMidBig.render(f5);
    ShapeMidSmall0.render(f5);
    ShapeMidSmall1.render(f5);
    ShapeMidNeck.render(f5);
    ShapeHeadBig1.render(f5);
    ShapeHeadBig0.render(f5);
    ShapeHeadBig2.render(f5);
    ShapeHeadSmall0.render(f5);
    ShapeHeadSmall1.render(f5);
    ShapeHeadSmall3.render(f5);
    ShapeHeadSmall2.render(f5);
    ShapeBottom1.render(f5);
    ShapeBottom00.render(f5);
  }
  
  private void setRotation(ModelRenderer model, float x, float y, float z)
  {
    model.rotateAngleX = x;
    model.rotateAngleY = y;
    model.rotateAngleZ = z;
  }
}
